package collectionDemo;

import java.net.PasswordAuthentication;
import java.sql.Array;

/**
 *@Author:fengxiaohui
 *@Description:
 *@Date:Create in 23:57 2024/12/10
 *@Modified By:
 */
public class ArrayDemo {

    public static void main(String[] args) {
        int[][] arr1 = new int[][]{{1,3},{2,6},{8,10},{15,20}};
        int [][] arr2 = new int[2][];
        int left = 0;
        int right = 0;

        int zero = 0;
        int one = 0;

        while (left <= arr1.length -1 ){
            // arr1[0][0] =2  arr1[1][0]=1
            if (arr1[left][right] >= arr1[left+1][right]){
                // 1
                zero = arr1[left+1][right];
                right = 1;
                // arr1[0][1] = 6 ,arr1[1][1] = 3
                if(arr1[left][right] > arr1[left+1][right]){

                }
            }else{

            }
        }

        for (int i = 0; i < arr1.length; i++) {
            for (int j = 0; j <=1; j++) {
                System.out.println(arr1[i][j]);
            }
        }


    }
}
